package com.bitoon.basketdudes.dao;

import com.bitoon.basketdudes.dao.interfaces.EquipoDAOInterface;

public abstract class DAOFactory {

  // List of DAO types supported by the factory
  public static final int JPA = 1;
  public static final int XML = 2;

  // There will be a method for each DAO that can be
  // created. The concrete factories will have to
  // implement these methods.
  public abstract EquipoDAOInterface getEquipoDAOInterface();

  public static DAOFactory getDAOFactory(int whichFactory) {

    switch (whichFactory) {
      case JPA:
          return new JPADAOFactory();
      default           :
          return null;
    }
  }


}
